﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using Starfire3d;
using Starfire3d.Data;
using Starfire3d.Data.States.GameStates;
using Starfire3d.TokenReader;

namespace tester
{
    class Program
    {
        static void Main(string[] args)
        {
            string filepath = Application.StartupPath + @"\Data\";
            TokenReader.LoadGameDataFiles(filepath);
            filepath = Application.StartupPath + @"\Data\Designs\";
            TokenReader.LoadGameDataFiles(filepath);

            GameManager mgr = new GameManager();
            while (true)
            {
                if (mgr.Update() == true)
                    break;
            }

            #region test
            //Unit unit = new Unit();
            //unit.Entity_Name = "Tester";

            //unit.Data.Add("v1", "steve", false);
            //unit.Data.Add("v2", 100, false);
            //unit.Data.Add("v3", 3.5, false);
            //unit.Data.Add("v4", true, false);

            //string res = unit.Data.GetString("v1");
            //int val1 = unit.Data.GetInt("v2");
            //double val2 = unit.Data.GetDouble("v3");
            //bool b1 = unit.Data.GetBool("v4");

            //string p = unit.Data.ParseTo();
            //unit.Data.ClearData();
            //unit.Data.ParseFrom(p);

            //DataStore.Add(unit);
            //Unit b = DataStore.Get<Unit>("Tester");
            #endregion
        }
    }
}
